package com.luo.dao;

import com.luo.model.Goods;
import com.luo.model.OneClass;
import com.luo.model.OneTwoClass;
import com.luo.model.TwoClass;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.One;

import java.util.List;

public interface ClassMappers {
    public List<OneClass> queryAllOneClass();

    public List<TwoClass> queryAllTwoClass();

    public List<OneClass> queryLimitOneClass();

    public List<TwoClass> queryTwoClassByOneId(OneClass oneClass);

    List<OneTwoClass> queryOneTwoClassByOneId(OneClass oneClass);

    public OneClass queryOneClassByOneId(String id);

    public List<Goods> queryGoodsByOneId(OneClass oneClass);

    List<TwoClass> queryTwoClassByOneName(String name);

    String queryOneClassByName(String name);

    String queryTwoClassByName(String name);

    TwoClass queryTwoClassByTwoId(String id);

    int AddOneClass(OneClass oneClass);

    int AddTwoClass(TwoClass twoClass);

    int deleteOneClass(List<String> list);

    int deleteTwoClass(List<String> list);

    int updateOneClass(OneClass oneClass);

    int updateTwoClass(TwoClass twoClass);

}
